import React from 'react'

export default function Footer(props) {
   const { list }=props
   let newArr=list.filter(item=>item.state)
  return (
    <div className='foot'>
        <p> 总共事情:{list.length} </p>
        <p> 已完成事情: {newArr.length}</p>
        <p> 未完成事情:{list.length-newArr.length} </p>
    </div>
  )
}
